const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, // ======> 追加这句话，用于关闭语法检查。
  devServer: {
    proxy: {
      "/api": {
        target: "https://www.toutiao.com",
        changeOrigin: true,
        pathRewrite: { "^/api": "" },
      },
      "/foo": {
        target: "https://news.baidu.com",
        changeOrigin: true,
        pathRewrite: { "^/foo": "" },
      },
    },
  },
});
